<?php include("Fondo.php"); 
	include_once("Logica/ListaTablas.php");
	cabecera();
	sesion();
	Izquierda();
	
	//Incluimos la Clase Fachada de Base de Datos
	include_once("../FachadaI.php");
	$fach = FachadaI::getInstance();

	if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
		echo '<ul class="err">';
		foreach($_SESSION['ERRMSG_ARR'] as $msg) {
			echo '<li>',$msg,'</li>'; 
		}
		echo '</ul>';
		unset($_SESSION['ERRMSG_ARR']);
	}
?>      
        
		<div id="contentmid">
	  
	    <div class="midheading">
          <h2>Creaci&oacute;n de Privilegios</h2><BR><BR>
        </div>
		
		<form action="../Preparacion/crearPrivilegio.php" method="post">

		
		Nombre de la tabla (max 20):
		<br>&nbsp;&nbsp;&nbsp;
			<select name="nombreTabla">
				<?php echo "".($fach->mostrarTablas()); ?>
			</select>
		<br>
		Acci&oacute;n:
		<br>&nbsp;&nbsp;&nbsp;
			<select name="accion">
			<option value='SELECT'>SELECT</option>
			<option value="INSERT">INSERT</option>
			<option value="DELETE">DELETE</option>
			<option value="UPDATE">UPDATE</option>
			<option value="CREATE">CREATE</option>
			<option value="DROP">DROP</option>
			</select>
			
			
		
		<center><input type="submit" value="Crear" /></center>
		</form>

		</div>

      <?php Derecha();?>    
<?php pie ();?>


